﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="EditProTypeInfo.aspx.cs"
    Inherits="EditProTypeInfo" MasterPageFile="~/Master.master" %>

<%@ Register Assembly="DevExpress.Web.ASPxGridView.v10.2, Version=10.2.3.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a"
    Namespace="DevExpress.Web.ASPxGridView" TagPrefix="dx" %>
<%@ Register Assembly="DevExpress.Web.ASPxEditors.v10.2, Version=10.2.3.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a"
    Namespace="DevExpress.Web.ASPxEditors" TagPrefix="dx" %>
<%@ Register Assembly="DevExpress.Web.v10.2.Linq, Version=10.2.3.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a"
    Namespace="DevExpress.Data.Linq" TagPrefix="dx" %>
<asp:Content ID="BodyContent" ContentPlaceHolderID="MainContent" runat="Server">
    <h1 class="DemoTitle">
        项目分类信息管理
    </h1>
    <div id="DemoArea">
        <div class="Spacer" style="height: 14px;">
        </div>
        <dx:ASPxGridView ID="gvProTypeInfo" runat="server" Width="100%" AutoGenerateColumns="False"
            DataSourceID="LSMDProTypeSource" KeyFieldName="Type_ID" CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css"
            CssPostfix="Office2010Blue" onrowcommand="gvProTypeInfo_RowCommand">
            <SettingsText EmptyDataRow="没有记录" />
            <Columns>
                <dx:GridViewDataTextColumn FieldName="Type_ID" ReadOnly="True" VisibleIndex="0" Caption="项目类型编号">
                </dx:GridViewDataTextColumn>
                <dx:GridViewDataTextColumn FieldName="Type_Name" VisibleIndex="1" Caption="项目类型名称">
                </dx:GridViewDataTextColumn>
                <dx:GridViewDataTextColumn Caption="操作" ShowInCustomizationForm="True" 
                    VisibleIndex="2" Name="Control">
                    <DataItemTemplate>
                        <a href='ProTypeInfoManage.aspx'>添加</a> 
                        <a href='TypeInfoUpdate.aspx?id=<%#Eval("Type_ID") %>'>修改 </a>
                        <asp:LinkButton ID="lnkDelete" runat="server" onclick="lnkDelete_Click">删除</asp:LinkButton>
                    </DataItemTemplate>
                </dx:GridViewDataTextColumn>
            </Columns>
            <SettingsPager AlwaysShowPager="True">
                <Summary Text="当前第{0}页，共{1}页，{2}条记录" />
            </SettingsPager>
            <Images SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css">
                <LoadingPanelOnStatusBar Url="~/App_Themes/Office2010Blue/GridView/Loading.gif">
                </LoadingPanelOnStatusBar>
                <LoadingPanel Url="~/App_Themes/Office2010Blue/GridView/Loading.gif">
                </LoadingPanel>
            </Images>
            <ImagesFilterControl>
                <LoadingPanel Url="~/App_Themes/Office2010Blue/GridView/Loading.gif">
                </LoadingPanel>
            </ImagesFilterControl>
            <Styles CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css" CssPostfix="Office2010Blue">
                <Header ImageSpacing="5px" SortingImageSpacing="5px">
                </Header>
                <LoadingPanel ImageSpacing="5px">
                </LoadingPanel>
            </Styles>
            <StylesPager>
                <PageNumber ForeColor="#3E4846">
                </PageNumber>
                <Summary ForeColor="#1E395B">
                </Summary>
            </StylesPager>
            <StylesEditors ButtonEditCellSpacing="0">
                <ProgressBar Height="21px">
                </ProgressBar>
            </StylesEditors>
        </dx:ASPxGridView>
        <dx:LinqServerModeDataSource ID="LSMDProTypeSource" runat="server" ContextTypeName="DAL.DataClassesDataContext"
            EnableDelete="True" EnableInsert="True" EnableUpdate="True" TableName="TypeInfo" />
    </div>
</asp:Content>
